<template>
  <div>
    <van-list
      v-model="loading"
      :finished="finished"
      finished-text="没有更多了"
      @load="onLoad"
    >
      <van-cell v-for="item in searchTipsArr" :key="item" :title="item" @click="geiValue(item)" />
    </van-list>
  </div>
</template>

<script>
export default {
  name: "SearchTipsList",
  data() {
    return {
      loading: false, //是否处于懒加载状态
      finished: true, //是否加载完成
      
    };
  },
  props:["searchTipsArr"],
  methods: {
    onLoad() {
      //加载事件 滚动条与底部距离小于 offset 时触发 默认300
    },
    geiValue(item){
      console.log(item);
      
      this.$emit("setValue",item)
    }
  },

};
</script>

<style>
</style>